if command -v tmux>/dev/null; then
    [[ ! $TERM =~ screen ]] && [ -z $TMUX ] && tmux new-session -A -s fjrti

    # check if we have been switched to light, else go dark
    # [[ ! $(tmux show-environment | grep THEME) =~ 'THEME=light' ]] && 
    # tmux set-environment THEME dark
    # tmux source-file ~/.local/etc/tmux/dark.conf
    # tmux set-environment THEME 'dark'
fi

# switch between light and dark themes
alias tl="tmux source-file ~/.local/etc/tmux/light.conf; tmux set-environment THEME 'light'"
alias td="tmux source-file ~/.local/etc/tmux/dark.conf; tmux set-environment THEME 'dark'"
